"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serviceProto = void 0;
exports.serviceProto = {
    "version": 30,
    "services": [
        {
            "id": 17,
            "name": "GameRefresh",
            "type": "msg"
        },
        {
            "id": 1,
            "name": "Connect",
            "type": "api"
        },
        {
            "id": 2,
            "name": "ConnectLeave",
            "type": "api"
        },
        {
            "id": 18,
            "name": "GameSync",
            "type": "api"
        },
        {
            "id": 0,
            "name": "Login",
            "type": "api"
        },
        {
            "id": 20,
            "name": "RankGet",
            "type": "api"
        },
        {
            "id": 21,
            "name": "RankSet",
            "type": "api"
        },
        {
            "id": 4,
            "name": "RoomCreate",
            "type": "api"
        },
        {
            "id": 19,
            "name": "RoomGet",
            "type": "api"
        },
        {
            "id": 5,
            "name": "RoomJoin",
            "type": "api"
        },
        {
            "id": 10,
            "name": "RoomLeave",
            "type": "api"
        }
    ],
    "types": {
        "MsgGameRefresh/MsgGameRefresh": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "type",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "content",
                    "type": {
                        "type": "Any"
                    }
                }
            ]
        },
        "PtlConnect/ReqConnect": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "user",
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IUser"
                    }
                }
            ]
        },
        "../common/types/IUser": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "openid",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "nickname",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 2,
                    "name": "gender",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 3,
                    "name": "avatar",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlConnect/ResConnect": {
            "type": "Interface"
        },
        "PtlConnectLeave/ReqConnectLeave": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "user",
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IUser"
                    }
                }
            ]
        },
        "PtlConnectLeave/ResConnectLeave": {
            "type": "Interface"
        },
        "PtlGameSync/ReqGameSync": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "type",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "room",
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IRoom"
                    }
                },
                {
                    "id": 2,
                    "name": "content",
                    "type": {
                        "type": "Any"
                    }
                }
            ]
        },
        "../common/types/IRoom": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "id",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "password",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 9,
                    "name": "players",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "../common/types/IUserBattle"
                        }
                    }
                },
                {
                    "id": 10,
                    "name": "status",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "../common/types/IUserBattle": {
            "type": "Intersection",
            "members": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IUser"
                    }
                },
                {
                    "id": 1,
                    "type": {
                        "type": "Interface",
                        "properties": [
                            {
                                "id": 0,
                                "name": "status",
                                "type": {
                                    "type": "Number"
                                },
                                "optional": true
                            }
                        ]
                    }
                }
            ]
        },
        "PtlGameSync/ResGameSync": {
            "type": "Interface"
        },
        "PtlLogin/ReqLogin": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "code",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlLogin/ResLogin": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "openid",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "session_key",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlRankGet/ReqRankGet": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "openid",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlRankGet/ResRankGet": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "my",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "PtlRankGet/IRank"
                        }
                    }
                },
                {
                    "id": 1,
                    "name": "top",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "PtlRankGet/IRank"
                        }
                    }
                }
            ]
        },
        "PtlRankGet/IRank": {
            "type": "Intersection",
            "members": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "../db/DbRank/DbRank"
                    }
                },
                {
                    "id": 1,
                    "type": {
                        "type": "Interface",
                        "properties": [
                            {
                                "id": 0,
                                "name": "rank",
                                "type": {
                                    "type": "Number"
                                }
                            }
                        ]
                    }
                }
            ]
        },
        "../db/DbRank/DbRank": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "_id",
                    "type": {
                        "type": "Reference",
                        "target": "?mongodb/ObjectId"
                    }
                },
                {
                    "id": 1,
                    "name": "openid",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 2,
                    "name": "nickname",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 3,
                    "name": "avatar",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 4,
                    "name": "gender",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 5,
                    "name": "win",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 6,
                    "name": "kill",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 7,
                    "name": "createTime",
                    "type": {
                        "type": "Date"
                    }
                },
                {
                    "id": 8,
                    "name": "updateTime",
                    "type": {
                        "type": "Date"
                    }
                }
            ]
        },
        "PtlRankSet/ReqRankSet": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "rank",
                    "type": {
                        "target": {
                            "type": "Reference",
                            "target": "../db/DbRank/DbRank"
                        },
                        "keys": [
                            "_id",
                            "createTime",
                            "updateTime"
                        ],
                        "type": "Omit"
                    }
                }
            ]
        },
        "PtlRankSet/ResRankSet": {
            "type": "Interface"
        },
        "PtlRoomCreate/ReqRoomCreate": {
            "type": "Interface",
            "properties": [
                {
                    "id": 1,
                    "name": "password",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 2,
                    "name": "player",
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IUser"
                    }
                }
            ]
        },
        "PtlRoomCreate/ResRoomCreate": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "room",
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IRoom"
                    }
                }
            ]
        },
        "PtlRoomGet/ReqRoomGet": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "roomId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlRoomGet/ResRoomGet": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "room",
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IRoom"
                    }
                }
            ]
        },
        "PtlRoomJoin/ReqRoomJoin": {
            "type": "Interface",
            "properties": [
                {
                    "id": 1,
                    "name": "roomId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 2,
                    "name": "player",
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IUser"
                    }
                }
            ]
        },
        "PtlRoomJoin/ResRoomJoin": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "room",
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IRoom"
                    }
                }
            ]
        },
        "PtlRoomLeave/ReqRoomLeave": {
            "type": "Interface",
            "properties": [
                {
                    "id": 1,
                    "name": "player",
                    "type": {
                        "type": "Reference",
                        "target": "../common/types/IUser"
                    }
                }
            ]
        },
        "PtlRoomLeave/ResRoomLeave": {
            "type": "Interface"
        }
    }
};
